package com.project.server.domain.companies;

import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 员工信息对象 t_company_staff
 *
 * @author project
 */
public class TCompanyStaff extends BaseEntity {

    private static final long serialVersionUID = -3580210879909472203L;

    /**
     * 员工编号
     */
    private Long staffId;

    /**
     * 企业编号
     */
    private Long compId;

    /**
     * 部门编号
     */
    private Long deptId;


    /**
     * 微信openid
     */
    private String openId;

    /**
     * 员工姓名
     */
    @Excel(name = "员工姓名")
    private String staffName;

    /**
     * 员工邮箱
     */
    @Excel(name = "员工邮箱")
    private String staffEmail;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String staffPhone;

    /**
     * 人脸数据
     */
    private String userFace;

    /**
     * 员工类型
     */
    @Excel(name = "员工类型",readConverterExp = "0=售前工程师,1=开发工程师,2=测试工程师,3=采购经理")
    private String staffType;

    /**
     * 认证状态（0已认证 1未认证）
     */
    @Excel(name = "认证状态", readConverterExp = "0=已认证,1=未认证")
    private String authenticationStatus;

    /**
     * 企业对象
     */
    @Excel(name = "企业名称", targetAttr = "compName", type = Excel.Type.EXPORT)
    private TCompany company;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 企业组
     */
    private Long[] compIds;

    public void setStaffId(Long staffId) {
        this.staffId = staffId;
    }

    public Long getStaffId() {
        return staffId;
    }

    public void setCompId(Long compId) {
        this.compId = compId;
    }

    public Long getCompId() {
        return compId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffEmail(String staffEmail) {
        this.staffEmail = staffEmail;
    }

    public String getStaffEmail() {
        return staffEmail;
    }

    public void setStaffPhone(String staffPhone) {
        this.staffPhone = staffPhone;
    }

    public String getStaffPhone() {
        return staffPhone;
    }

    public String getUserFace() {
        return userFace;
    }

    public void setUserFace(String userFace) {
        this.userFace = userFace;
    }

    public void setStaffType(String staffType) {
        this.staffType = staffType;
    }

    public String getStaffType() {
        return staffType;
    }

    public void setAuthenticationStatus(String authenticationStatus) {
        this.authenticationStatus = authenticationStatus;
    }

    public String getAuthenticationStatus() {
        return authenticationStatus;
    }

    public TCompany getCompany() {
        return company;
    }

    public void setCompany(TCompany company) {
        this.company = company;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("staffId", getStaffId())
                .append("compId", getCompId())
                .append("openId", getOpenId())
                .append("staffName", getStaffName())
                .append("staffEmail", getStaffEmail())
                .append("staffPhone", getStaffPhone())
                .append("userFace", getUserFace())
                .append("staffType", getStaffType())
                .append("authenticationStatus", getAuthenticationStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("company", getCompany())
                .toString();
    }
}
